// BASEQUANTITIES_H_INCLUDED
#define METRES_PER_MILE 1609.3
#define PI 3.14159265

//Velocity Definition -
//Magnitude and Angle are m/s and Radians respectively
//Speed and Bearing are mph and Degrees respectively
class Velocity
{
    private:
        float magnitude;
        float angle;

    public:
        float Magnitude() {return magnitude;};
        float Angle(){return angle;};
        float Speed() {return (magnitude / METRES_PER_MILE) * 3600;};
        float Bearing() {return (angle * 360)/(2 * PI);};

        void SetMagnitude(float m);
        void SetAngle(float a);
};


void Velocity::SetMagnitude(float m)
{
    magnitude = m;
}
void Velocity::SetAngle(float a)
{
    angle = a;
}
